package com.boy.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author whd
 * @since 2024-05-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_log")
@ApiModel(value = "Log对象", description = "")
public class Log implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    // @TableField(fill = FieldFill.INSERT)
    private String id;

    private String msg;

    private String ip;

    private String result;

    private String accountName;
    @TableField(fill = FieldFill.INSERT)
    private Date created;


    public Log(String describe, String name, String ip,String result) {
        this.msg = describe;
        this.accountName = name;
        this.ip = ip;
        this.result =result;
    }

    public Log() {
    }
}
